package net.zjitc.Shape;

/**
 * @Author admin
 * @Date 2019/3/20 9:03
 * 形状
 */
public class Shape {
    String name;
    double area;
    Shape(){

    }
    Shape(String name){
        this.name=name;
    }
    /**
     *    方法加abstract：该方法不用写方法体，直接加分号
     * */
    //public abstract void print();
  public void print(){
        System.out.println(name+"面积是:"+area);
    }
}
